package com.example.mylearn.proxy.dynamicProxy.jdk;

import java.lang.reflect.Proxy;

public class JdkProxyFactory {


    public static Object getProxy(Object obj) {
        return Proxy.newProxyInstance(obj.getClass().getClassLoader(), obj.getClass().getInterfaces(), new MyInvocationHandler(obj));
    }





}
